var login = {
    path    : "/admin/register",
    method  : "get",
    auth    : function(req, next){
        if(0 !== global.app.user.count)
            return next(new Error("系统只允许一个用户"));
        else return next();
    },
    next : false,
    failUrl : "/admin/login"
};

module.exports = login;
